$('#btnAdd').click(function () {
    $.ajax({
        url: '/student/add',
        method: 'post',
        data: $('#frmInput').serialize()
    }).then(res => {
        if (res.msg === 'OK') {
            alert('添加数据成功！');
        } else {
            alert('添加数据失败！')
        }
        window.location.href = '/student';
    });
});